<?php

namespace App\Model;


class FinancePearlPayRule extends BaseModel
{
    protected $table = 'finance_pearl_pay_rule';
    protected $primaryKey = 'rule_id';
    public $timestamps = false;
    CONST PLAT_TYPE_BACK = 4;
    
    
    public function getBackList(){
        return self::where('plat_type',self::PLAT_TYPE_BACK)->get(['rule_id','pearl_desc']);
    }
    
    public function getPriceByRuleId(int $rule_id){
        return self::where('rule_id',$rule_id)->first(['price']);
    }
}
